package cn.cool.middleware.biz_exception_retry.domain;

import cn.cool.middleware.biz_exception_retry.domain.model.entity.BizExceptionRetryRecordEntity;
import cn.cool.middleware.biz_exception_retry.domain.model.valobj.BizExceptionRetryRecordVO;

import java.util.List;

public interface IBizExceptionRetryRecordService {

    void saveBizExceptionRetryRecord(BizExceptionRetryRecordEntity entity);

    List<BizExceptionRetryRecordVO> listExceptionRetryRecords(Long lastExceptionId, String exceptionModule, Integer pageSize);

    int updateRecordStatus2Processing(Long bizExceptionRetryId, Integer status);

    int incrBizExceptionRetryDealNumber(Long retryId);

    int updateBizExceptionRetryRecordStatus(Long retryId, int recordRetryStatus);
}